import React from "react";
import ReactDOM from "react-dom/client";

/**
 * class 组件
 */
class MyComponent extends React.Component {
  render() {
    return <h1>你好，{this.props.title}！！！</h1>;
  }
}

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<MyComponent title="千锋" />);
